
import 'package:flutter/material.dart';
import 'package:flutter_2b_client/Root.dart';
import 'package:flutter_2b_client/apis/Initial.dart';
import 'package:flutter_2b_client/notification/NotificationManager.dart';
import 'package:flutter_2b_client/service/MyBackgroundService.dart';
import 'package:provider/provider.dart';

import 'store/EmployeeAuthorizationStore.dart';



void main() {
  WidgetsFlutterBinding.ensureInitialized();
  NotificationManager().initialize();
  runApp(const MyApp());
}



class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MultiProvider(
      providers: [
        Provider(
          create: (context) {
            return EmployeeAuthorizationStore();
          },
        ),
      ],
      child: const Root(),
    );
  }
}
